﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using Microsoft.Win32;

namespace QuanLyQuanCaPhe
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]

        
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //connection_sql.Excute_sql("insert into users values('1','1',N'Chủ quán') insert into menu values('Sting',8000)");
            
            //Application.Run(new frmKhoHang(false));

            RegistryKey reg = Registry.CurrentUser.CreateSubKey(@"Software\CFThuyTrucVien");
            string s = "" + reg.GetValue("SoBan");
            reg.Dispose();

            if (s == "")
                Application.Run(new frmLogIn("0"));
            else
                Application.Run(new frmLogIn(s));
        }
    }
}
